package com.iyunsir.goods.mapper;

import com.iyunsir.goods.entity.Goods;
import com.iyunsir.goods.vo.GoodsQuery;
import org.apache.ibatis.annotations.Param;


import java.util.List;

public interface GoodsMapper {

    List<Goods> getGoodsList(GoodsQuery param);

    Long countGoodsList(GoodsQuery param);

    void addGoods(Goods goods);

    void deleteGoodsByIds(String ids);

    Goods getGoodsById(Integer id);

    void updateGoods(Goods goods);

    Goods findByCommodity(@Param("commodity") Integer commodity);

    void updateQuantityById(@Param("goods") Goods goods);
}
